package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yanghao
 * @since 2019-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_classification")
public class Classification extends Model<Classification> {

    private static final long serialVersionUID=1L;

    private String id;

    private String pid;

    private String menuname;

    private String createTime;

    private String updateTime;

    private String encryption;

    private String recycle;

    private String userId;

    private String shareStatus;

    private Double size;

    private String iconUrl;

    @TableField(exist = false)
    private List<Classification> children;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
